import request from '@/router/axios';

export const getList = (current, size, params, deptId) => {
  return request({
    url: '/api/blade-platform/caseReport/list',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}
// 报告单详情查看
export const getDetail = (id) => {
  return request({
    url: '/api/blade-platform/caseReport/info/',
    method: 'get',
    params: {
      id,
    }
  })
}
// 删除
export const remove = (query) => {
  return request({
    url: '/api/blade-platform/caseReport/remove',
    method: 'post',
    data: query
  })
}
export const add = (row) => {
  return request({
    url: '/api/blade-platform/caseReport/install',
    method: 'post',
    data: row
  })
}
// 更新
export const update = (row) => {
  return request({
    url: '/api/blade-platform/caseReport/update',
    method: 'post',
    data: row
  })
}
export const getCharacteristicPool = () => {
  return request({
    url: '/api/blade-platform/caseReport/characteristicPool',
    method: 'get',
  })
}
// 获取报告单
export const caseReport = () => {
  return request({
    url: '/api/blade-platform/caseReport/algorithmType',
    method: 'get'
  })
}
// 图片算法
export const pictureAlgorithmList = () => {
  return request({
    url: '/api/blade-platform/caseReport/pictureAlgorithm',
    method: 'get'
  })
}
// 根据报告单获取表头
export const getTableHeader = (id) => {
  return request({
    url: '/api/blade-platform/caseReport/getTableHeader',
    method: 'get',
    params: {
      id,
    }
  })
}
// 特征池下拉框
export const characteristicPool = (query) => {
  return request({
    url: '/api/blade-platform/caseReport/characteristicPool',
    method: 'get',
    params: query
  })
}
// 数据类型下拉框
export const dataTypeList = () => {
  return request({
    url: '/api/blade-platform/caseReport/dataType',
    method: 'get'
  })
}
// 新增
export const characteristicPoolAdd = (query) => {
  return request({
    url: '/api/blade-platform/caseReport/install',
    method: 'post',
    data: query
  })
}





